using System;
using System.Net;

namespace Locator.LcboServices.PageLoaders.PageRetrievers
{
    public class LiveProductListPageRetriever : PageRetriever
    {
        protected override Uri BuildUrl(string parameter)
        {
            return new Uri("http://www.lcbo.com/lcbo-ear/lcbo/product/searchResults.do");
        }

        protected override string PostParameters
        {
            get { return "STOCK_TYPE_NAME=All&ITEM_NAME=&KEYWORDS=&ITEM_NUMBER=&productListingType=&LIQUOR_TYPE_SHORT_=*&CATEGORY_NAME=*&SUB_CATEGORY_NAME=*&PRODUCING_CNAME=*&PRODUCING_REGION_N=*&UNIT_VOLUME=*&SELLING_PRICE=*&LTO_SALES_CODE=N&VQA_CODE=N&KOSHER_CODE=N&VINTAGES_CODE=N&VALUE_ADD_SALES_CO=N&AIR_MILES_SALES_CO=N&language=EN&style=+LCBO.css&sort=sortedName&order=1&resultsPerPage=20000&page=1&action=result&sortby=sortedName&orderby=&numPerPage=20000"; }
        }

        protected override string RequestMethod
        {
            get { return WebRequestMethods.Http.Post; }
        }

        protected override HttpWebRequest BuildRequestAsync(string paramter)
        {
            throw new NotImplementedException();
        }

        protected override HttpWebRequest BuildRequest(string paramter)
        {
            throw new NotImplementedException();
        }
    }
}